<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\Session;
use think\Request;

class Indexcontroller extends Controller
{
	public function _initialize()
	{
		if(empty(Session::get('person'))){
			$this->error('请先登录',url('index/login/index'));
        }
	}
}
